GH-145247: Use _PyTuple_FromPair[Steal] in Objects#145884
GH-145247: Use _PyTuple_FromPair[Steal] in Objects#145884vstinner merged 16 commits intopython:mainfrom
Conversation
sergey-miryanov
left a comment
There was a problem hiding this comment.
Address review
…ey-miryanov/cpython into feat/145247-pytuple-from-pair-use-2
vstinner
left a comment
There was a problem hiding this comment.
This change introduces a leak in the dict type (see my comment below about a leak).
Co-authored-by: Victor Stinner <vstinner@python.org>
|
Ah, there are now compiler warnings, about unused variables if I understood correctly: |
Yeah, I fixed it. Working on left review comments. |
|
@vstinner Thanks for review! Could you please take a look? |
vstinner
left a comment
There was a problem hiding this comment.
LGTM. I have have a few more coding style suggestions.
Co-authored-by: Victor Stinner <vstinner@python.org>
vstinner
left a comment
There was a problem hiding this comment.
Sorry, more sugestions for dictitems_xor_lock_held() which is the most complex function of this change. I propose further changes to make the code easier to follow.
|
Thanks for all updates! I enabled auto-merge on the PR. IMO this change makes the code easier to follow/review. |
|
Thanks for review! |
It is a second PR for usage of _PyTuple_FromPair[Steal] in the codebase.
PyTuple_FromPair#145247